package org.hishenframework.core.data.jdbc.entity;

import java.util.Date;

import javax.persistence.Column;

/**
 * 基本
 * @author ZhangDi
 *
 */
public abstract class AbstractHishenEntity {
	
	/** 操作者id */
	@Column(name = "operator_id")
	private long operatorId;
	
	/** 插入时间 */
	@Column(name = "insert_time", updatable = false)
	private Date insertTime = new Date();
	
	/** 更新时间 */
	@Column(name = "update_time", insertable = false)
	private Date updateTime = new Date();

	public Date getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
